2008-06-09
when running open office from a bootstrap routine or in headless mode for batch processing make sure the following settings to avoid an unsatisfied link error
soffice -accept="pipe,name=my_app;urp;"
java -Djava.library.path=/opt/openoffice.org/program java.app.class
useful reference on...
2008-05-07
Pattern p = Pattern.compile("[0-9]");
Matcher m = p.matcher("asdas12dsad");
System.out.println(m.find());...
2008-04-18
http://kb.mozillazine.org/Browser.cache.disk_cache_ssl...
2008-03-06
@In("myEntityManager")
private EntityManager em;
...
MyObject myObject = em.find(MyObject.class, myObjectPrimaryKey);...
2008-03-05
WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB
java.sql.SQLException: User not found: SA
It's possible that your jboss deployment has gone a bit squiffy.. try deleting the following:
jboss/server/default/tmp
jboss/server/default/da...
2008-02-13
caused by: java.lang.RuntimeException: Exception creating identity: domainName
Solution
your computer can't find itself
go to:
etc/hosts
make sure the loopback address refers to the name of the box you are running on ie
127.0.0.1 documentationServerBox localhost.localdomain loc...
2007-12-07
public enum SecpayErrorType { authorised ("Transaction authorised by bank. auth_code available as bank reference"), notAuthorised ("Transaction not authorised. Failure message text available to merchant"), commsProblem ("Communication problem. Trying again later may well work"), fraud...
2007-12-04
xmlns:s="http://jboss.com/products/seam/taglib"
seam-ui.tld
xmlns:ui="http://java.sun.com/jsf/facelets"
jsf-ui.tld
xmlns:f="http://java.sun.com/jsf/core"
myfaces_core.tld
xmlns:h="http://java.sun.com/jsf/html"
myfaces_html.tld
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
ri...
2007-12-03
for (OrderTransaction orderTransaction : secPayResultList) {
for(Payment payment : orderTransaction.getPayments()){
if(PaymentMethodType.CARD.equals(payment.getMemberPaymentMethod().getPaymentMethod().getType())){...
2007-11-22
Check out as a project configure using the new project wizard
_> Head
-> java
-> java project
iFlow
libs - add all
order & export - select all
Midas
projects - add iflow...
2007-09-13
make sure the file msvcr71.dll is present in the system path
intall java jre
install tomcat
copy the deployment directory onto the local drive
edit:
..\Apache Software Foundation\Tomcat 6.0\conf\server.xml
to include the deployment path to the application
this looks l...
2007-09-13
When tomcat generates something similar to the following log output chances are its missing the Windows C dll MSVCR71.dll - Tomcat needs this to initialise java when the service starts. Put a copy in your c:\windows\system32 directory or wherever you want as long as its in your system path
[200...
2007-09-12
public static void copyFile(String sourceFile, String filePath, String destinationFile) {
try {
FileInputStream streamSource = new FileInputStream(sourceFile);
FileOutputStream streamDest = new FileOutputStream(filePath + destinationFile);
byte[] buffer = new...
2007-08-20
replacing two chars using an or (pipes)
String p = "text to search.. through with = and , and ^regex";
System.out.println("result: "+ p.replaceAll(",|=", "") );
if you want to strip all the tags out you can use:
System.out.println("p: "+ p.replaceAll("\\W", " ") );
note.. that will strip spaces...